Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Typescript typings. #39

Merged
merged 1 commit into from
May 11, 2018
Merged

Adding Typescript typings. #39

merged 1 commit into from
May 11, 2018

Conversation

saboya
Copy link
Contributor

@saboya saboya commented May 6, 2018

Packet typings were basically taken from https://github.com/mqttjs/MQTT.js/blob/master/types/lib/types.d.ts, with a minor addition: the ISubscription interface. This is due to me trying to write Aedes typescript bindings, and that additional interface would be helpful there.

@mcollina
Copy link
Member

mcollina commented May 7, 2018

Would these be compatible with the ones in https://github.com/mqttjs/MQTT.js/blob/master/types/lib/types.d.ts? I mean, if we add these here should we change them in MQTT.js to use this instead? Can you prepare that PR as well?

@saboya
Copy link
Contributor Author

saboya commented May 7, 2018

Yeah, that would make sense. I'll prepare the PR and let you know when it's ready.

@saboya
Copy link
Contributor Author

saboya commented May 7, 2018

@mcollina PR mqttjs/MQTT.js#819 is ready.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit a2e8f5b into mqttjs:master May 11, 2018
@mcollina
Copy link
Member

Thanks!

@saboya saboya deleted the typescript-typings branch October 21, 2018 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants